package com.itheima.Random_demo;

import java.util.Random;

public class Randomdemo1 {
    public static void main(String[] args) {

        Random rd = new Random();
        int data = rd.nextInt((10)+1);
        System.out.println("data = " + data);

    }
}
